import request from "./request";

export default {
    login(params) {
        return request({ url: "/admin/employee/login", method: "post", data: params });
    },
    getEmployeeData(params) {
        return request({ url: "/admin/employee/getEmployeeData", method: "get", params });
    },
    deleteEmployee(params) {
        return request({ url: "/admin/employee/deleteEmployee", method: "get", params });
    },
    addEmployee(data) {
        return request({ url: "/admin/employee/addEmployee", method: "post", data });
    },
    editEmployee(params) {
        return request({ url: "/admin/employee/editEmployee", method: "post", data: params });
    },
    updatePassword(params) {
        return request({ url: "/admin/employee/updatePassword", method: "post", data: params });
    }
};
